Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd     = GetCurrentDir()
CPPPATH = [cwd, str(Dir('#'))]
src     = Split("""
	gcc/gcov-io.c
	libgcc/libgcov-driver.c
	libgcc/libgcov-driver-system.c
	src/libgcov-embedded.c
""")


path  = [cwd]
path += [cwd + '/gcc']
path += [cwd + '/libgcc']
path += [cwd + '/src']

group = DefineGroup('gcov-port', src, depend = [''], CPPPATH = path)

Return('group')